<template>
  <el-dialog
    title="图库管理"
    v-model="UploadDialogVisible"
    width="70%"
    height="300px"
    :before-close="handleClose">
    <UploadFile
    :CheckLimit="CheckLimit"
    :Checked="Checked"
    />
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="CancelUploadFile()">取 消</el-button>
        <el-button type="primary" @click="SaveUploadFile()">确 定</el-button>
      </span>
    </template>
  </el-dialog>
</template>
<script>
import UploadFile from './upload-file.vue';
export default {
  name :'UploadFileDialog',
  components: {
    UploadFile
  },
  props:{
    UploadDialogVisible:{
      type: Boolean,
      default: false
    },
    CheckLimit:{
      type: Object,
      default: () =>{}
    },
    Checked:{
      type: Object,
      default: () =>{}
    }
  },
  setup(props, { emit, attrs }){
    function SaveUploadFile(){
      emit('SaveUploadFile');
    }
    function CancelUploadFile(){
      emit('CancelUploadFile');
    }
    return {
      SaveUploadFile,
      CancelUploadFile
    }
  }
}
</script>
<style scoped>

</style>
